<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  
	String path = request.getContextPath();  
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%@include file="/esayuiStyle.jsp" %>
<script type="text/javascript" src="js/dictionary.js"></script>
<body>
<div class="easyui-panel" title="设置查询条件" style="padding:10px 10px;">
		<div id="tb">
			名称 : <input type="text" name="" id="value"/>
		
			<a id="btn" href="javascript:void(0)" onclick="setCondition();" class="easyui-linkbutton" data-options="iconCls:'icon-search'">Search</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addParent();" data-options="iconCls:'icon-add',plain:true">添加类型</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="editParent();" data-options="iconCls:'icon-edit',plain:true">修改类型</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addSubGrade();" data-options="iconCls:'icon-add',plain:true">添加</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="editSubGrade();" data-options="iconCls:'icon-edit',plain:true">修改</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="deleteState();" data-options="iconCls:'icon-remove',plain:true">删除</a>
		</div>
	</div>
<div>
	<div style="float: left;width:10%;">
		<table id="dictionaryParent" title="基本类别" width="200" height="400"
			data-options="url:'dictionary/parent',method:'post',fitColumns:true,singleSelect:true">
			<thead>
				<tr>
				    <th data-options="field:'value',width:200" id="values">value</th>
				</tr>
			</thead>
		</table>
	</div>
	<div style="float: left;width:90%;">
		<table id="dictionaryTable" title="物品" width="100%" height="400"
			data-options="url:'dictionary/list',method:'post',fitColumns:true,striped:true,rownumbers:true ">
			<thead>
				<tr name="as">
					<th data-options="field:'tyu',checkbox:true"></th>
				    <th data-options="field:'id',width:80,sortable:true">字典编号</th>
				    <th data-options="field:'key',width:110,sortable:true">字典标识</th>
				    <th data-options="field:'value',width:110,sortable:true">字典值</th>
				</tr>
			</thead>
		</table>
	</div>
</div>
</body>
</html>